#pragma once
#include <chrono>
#include <string>

class vmsg_meta
{
    public:
        vmsg_meta();
        virtual ~vmsg_meta();

    public:
        void set_name(const std::string name);
        void increase_count();
        void increase_count(unsigned long long count);
        unsigned long long  elapsed() const; //return ms
        unsigned long long tps();

    protected:
        unsigned long long int now() const; //ms,now time count from epoch

    protected:
        std::string _name;
        unsigned long long int _count;
        unsigned long long int _last_count;
        unsigned long long int _last_time;
};




